package com.xbongbong.pro.companyconfig.pojo.dto;

import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * @description: 设置每周工作日天数
 * @Author: hongxiao
 * @date: 2019-02-17 19:05
 * @since v1.0
 */
@Getter
@Setter
@ToString
public class CompanyConfigSetWorkingDayWeekDTO extends BaseDTO {
    /**
     * 每周工作日天数，默认为5
     */
    @NotNull(message = "{dto.msg.companyConfigSetWorkingDayWeek.workingDayWeek.NotNull}")
    @Min(value = 1, message = "{dto.msg.companyConfigSetWorkingDayWeek.workingDayWeek.Min}")
    @Max(value = 7, message = "{dto.msg.companyConfigSetWorkingDayWeek.workingDayWeek.Max}")
    private Double workingDayWeek;
}
